home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
By the Book
/
Learn C++ (CodeWarrior)
/
Chap 04.07 - scopeTester
/
scopeTester.cp
< prev
next >
Wrap
Text File
|
1995-10-20
|
308b
|
20 lines
#include <iostream.h>
short myValue = 5;
int main()
{
short yourValue = myValue;
cout << "yourValue: " << yourValue << "\n";
short myValue = 10;
yourValue = myValue;
cout << "yourValue: " << yourValue << "\n";
yourValue = ::myValue;
cout << "yourValue: " << yourValue << "\n";
return 0;
}